#ifndef CHAIRWINDOW_H
#define CHAIRWINDOW_H

#include "mainlogin.h"
#include "admindata.h"
#include "outlineSectionPage.h"
#include "CourseOutline.h"

#include <QRect>
#include <QMainWindow>
#include <QFrame>
#include <QModelIndex>
#include <QListWidgetItem>

#define CHAIR_INDEX 0
#define EDIT_OUTLINE_INDEX 1
namespace Ui {
class ChairWindow;
}

class ChairWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit ChairWindow(QWidget *parent = 0, AdminData *newData = 0);
    ~ChairWindow();
    
private:
    Ui::ChairWindow *ui;
    AdminData *data;
    QVector<Course> courses;
    QVector<Course*> underReviewOutlines;
    CourseOutline *outline;
    QVector<OutlineSection> sections;

private slots:

    void on_stackedWidget_currentChanged(int arg1);
    void on_sectionListWidget_currentRowChanged(int currentRow);
    void on_outlines_itemDoubleClicked(QListWidgetItem *item);
    void on_saveOutlineButton_2_clicked();
    void on_sumbitOutlineButton_2_clicked();
    void on_cancelButton_2_clicked();
    void on_ChairBackButton_3_clicked();
};

#endif // CHAIRWINDOW_H

